﻿@model IEnumerable<KCMS.BusinessLogic.Models.MenuItem>

<table id="menu-item-list">
    <tr>
        <th>
            Title
        </th>
        <th>
            MenuId
        </th>
        <th>
            ContentId
        </th>
        <th>
            ContentCode
        </th>
        <th>
            ContentIndex
        </th>
        <th>
            ParentId
        </th>
        <th>
            Controller
        </th>
        <th>
            Action
        </th>
        <th>
            HtmlClass
        </th>
        <th>
            HtmlId
        </th>
        <th>
            IndexNumber
        </th>
        <th>
            Published
        </th>
           <th>
            Area
        </th>
           <th>
            ContentCategory
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Title)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MenuId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ContentId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ContentCode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ContentIndex)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ParentId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Controller)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Action)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.HtmlClass)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.HtmlId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IndexNumber)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Published)
        </td>
         <td>
            @Html.DisplayFor(modelItem => item.Area)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ContentCategory)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Copy", "Copy", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
    </tr>
}

</table>
